package thinkingJava.chapter15;

import java.util.Arrays;
import java.util.List;

public class CompilerIntelligence {

	public static void main(String[] args) {
		List<? extends Fruit> fList = Arrays.asList(new Apple());
		Apple a = (Apple)fList.get(0);
		System.out.println(a);
		System.out.println(fList.contains(new Apple()));
		System.out.println(fList.indexOf(new Apple()));
	}
}
